---
title: Get a Data Source
sidebarTitle: Get a Data Source
---

You can save a data sources nto a variable using the code below.

```
const db = await MindsDB.Databases.getDatabase('mysql_datasource');
```
